package com.dly.hope.repository;

import com.dly.hope.modle.WebSocketMessage;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

/**
 * @author linyu.dai
 * @project myserve
 * @description
 * @creat 2022/11/8 13:26:15
 */
public interface WebSocketMessageRepository extends JpaRepository<WebSocketMessage, String> {

    Optional<WebSocketMessage> findByIdAndDataStatus(String s, Integer dateStatus);

    List<WebSocketMessage> findByAcceptIdAndSendIdAndDataStatus(String acceptId,String sendId,Integer dateStatus);
}
